<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组的修改</title>
</head>
<body>
<script>
    var arr = ['tom','23','岁'];
    arr[0]='fank';
    arr[1]='24';
    arr[2]='啦';
    console.log(arr)
</script>
</body>
</html>